import {Directive, HostBinding, Input} from "@angular/core";
import {NavController} from "ionic-angular";

/***
 *  练习指令
 *
 */
@Directive({
  selector:'[text]',
})

export class TextDirDirective{

  constructor(public navCtrl:NavController){ }

  @Input() text:string;
  @HostBinding() get innerText(){
    return this.text;
  }
}
